package com.woniuxy.controller;


import ch.qos.logback.core.model.INamedModel;
import com.woniuxy.service.AppointmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/medical")
public class AlipayControlller {

    @Autowired
    AppointmentService appointmentservice;
    @PostMapping("/notify") // api/medical/notify
    public String notifyUrl(@RequestParam Map<String, String> params) {
        appointmentservice.notifyUrl(params);
        return "success";
    }
}
